package com.dm.puzzile;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.DisplayMetrics;

import com.dm.DMButton;

public class MainActivity extends PuzzileActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        if(!DMButton.havaDensity()) {
            DisplayMetrics dm = new DisplayMetrics();
            getWindowManager().getDefaultDisplay().getMetrics(dm);
            DMButton.setDensity(dm);
        }
    }
    
    protected TYPE getType() {
        return TYPE.MAIN;
    }
    
    public void startThisActivty(long seed) {
        startActivty(this,seed);
    }
    
    public static void startActivty(Context  context, long seed) {
        Intent it = new Intent(context, MainActivity.class);
        it.putExtra("SEED", seed);
        context.startActivity(it);
    }
}